package copyengine.ui.component.button.animation.mobile
{
	import flash.display.MovieClip;
	import copyengine.ui.component.button.animation.ICESelectedButtonAnimation;

	
	/**
	 * 只用于Mobile
	 * 
	 * 1·targetMc需要为MovieClip,且包含两帧 normal:普通状态 selected:被选中状态
	 */
	public final class CEMobileSelectedButtonDarkAnimation extends CEMobileButtonDarkAnimation implements ICESelectedButtonAnimation
	{
		public function CEMobileSelectedButtonDarkAnimation(_arg:Object=null)
		{
			super(_arg);
		}

		public function onSelectedChange(isSelected:Boolean):void
		{
			isSelected ? (targetMc as MovieClip).gotoAndStop("selected") : (targetMc as MovieClip).gotoAndStop("normal");
		}
	}
}
